package com.atchangsha.system.constant;

import com.atchangsha.system.common.exception.EnumInterface;

public class PointConstants {

    public enum PointEnum implements EnumInterface {
        CUSTOMER_NOT_EXIST(-1801,"客户不存在"),
        POINT_NOT_EXIST(-1802,"该客户没有积分"),
        UPDATE_SUCCESS(1803,"积分更新成功"),
        UPDATE_FAIL(-1804,"积分更新失败"),
        OPERATION_NOT_ALLOWED(-1805,"积分小于0，不允许操作"),
        ;
        private int code;
        private String message;

        PointEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        @Override
        public int getCode() {
            return code;
        }

        @Override
        public String getMsg() {
            return message;
        }
    }
}
